package com.hyacinth.netty.protocol;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import static com.hyacinth.netty.CommandType.LOGIN;


/**
 * 登录数据包
 * @author zhangfb
 * @version 1.0.0.1
 * @since JDK 1.8
 */
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Data
public class LoginPacket extends Packet {

    private long userId;
    private String userName;

    @Override
    public Byte getCommand() {
        return LOGIN;
    }
}
